<?
/**
 * index.php
 *
 * <pre>
 * Devyra Internacionalnaya
 * Vebba PHP Framework and Website Builder
 * Main entry source file
 * </pre>
 *
 * @package   --
 * @version   0.7.0100 alpha
 * @since     2012
 * @author    Paul Dinh
 * @copyright Devyra Internacionalnaya
 */

/*
 * Prepare the source code of framework
 */ 
error_reporting(-1);                            //-1=0xFFFF
require_once("libs/extensions/generic.php");    //functions
require_once("classes/core/static/system.php"); //system
set_error_handler("handle_error",-1);           //normal error
register_shutdown_function("handle_shutdown");  //fatal error
ini_set("auto_detect_line_endings",1);          //CRLF+LF

/*
 * Render web page in layout indicated by config file;
 * no html output is supposed to be before 'system::initialise();' 
 * or after 'system::finalise();'.
 */
system::initialise();  //load classes, parse input, etc.
system::render_html(); //render layout, page, blocks, etc.
system::finalise();    //clean up operation

//END-OF-FILE